/**
 * 
 */
package GUI;

import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JButton;

import java.awt.Font;
import java.awt.Color;

/**
 * @author aviat
 *
 */
public class NewOrReturnCustomer extends JPanel{

	
	private static final long serialVersionUID = 1L;
	private JButton btnBack;
	private JLabel iconlabel;
	private JButton btnNewCustomer;
	private JButton btnExistingCustomer;

	/**
	 * Constructor
	 */
	public NewOrReturnCustomer() {
		setLayout(null);
		btnBack = new JButton("Back");
		btnNewCustomer = new JButton("New Customer");
		btnNewCustomer.setIcon(new ImageIcon(NewOrReturnCustomer.class.getResource("/resources/label_new_yellow.png")));
		btnExistingCustomer = new JButton("Existing Customer");
		btnExistingCustomer.setIcon(new ImageIcon(NewOrReturnCustomer.class.getResource("/resources/facebook_like.png")));
		btnBack.setIcon(new ImageIcon(NewOrReturnCustomer.class.getResource("/resources/back22.png")));
		
		initialize();
	}

	private void initialize() {
		JLabel lblNewOrReturnCustomer = new JLabel("New Or Existing Customer");
		lblNewOrReturnCustomer.setForeground(new Color(0, 204, 255));
		lblNewOrReturnCustomer.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblNewOrReturnCustomer.setBounds(10, 11, 268, 25);
		add(lblNewOrReturnCustomer);
		
		
		btnBack.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnBack.setBounds(10, 462, 101, 27);
		add(btnBack);
		
		ImageIcon LOGOImageIcon = new ImageIcon(getClass().getClassLoader().getResource("resources/camera-background3.png"));
		ImageIcon LOGO = new ImageIcon (LOGOImageIcon.getImage().getScaledInstance(-1, -1, java.awt.Image.SCALE_SMOOTH));
		
		
		
		btnNewCustomer.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnNewCustomer.setBounds(291, 172, 179, 52);
		add(btnNewCustomer);
		
		
		btnExistingCustomer.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnExistingCustomer.setBounds(291, 303, 179, 52);
		add(btnExistingCustomer);
			
		iconlabel = new JLabel("");
		iconlabel.setIcon(LOGO);
		iconlabel.setBounds(0, 0, 786, 500);
		add(iconlabel);
	}

	/**
	 * @return the btnBack
	 */
	public JButton getBtnBack() {
		return btnBack;
	}

	/**
	 * @param btnBack the btnBack to set
	 */
	public void setBtnBack(JButton btnBack) {
		this.btnBack = btnBack;
	}

	/**
	 * @return the btnNewCustomer
	 */
	public JButton getBtnNewCustomer() {
		return btnNewCustomer;
	}

	/**
	 * @param btnNewCustomer the btnNewCustomer to set
	 */
	public void setBtnNewCustomer(JButton btnNewCustomer) {
		this.btnNewCustomer = btnNewCustomer;
	}

	/**
	 * @return the btnExistingCustomer
	 */
	public JButton getBtnExistingCustomer() {
		return btnExistingCustomer;
	}

	/**
	 * @param btnExistingCustomer the btnExistingCustomer to set
	 */
	public void setBtnExistingCustomer(JButton btnExistingCustomer) {
		this.btnExistingCustomer = btnExistingCustomer;
	}
}
